package com.webware.view.client.app.view;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.FormPanel;
import com.google.gwt.user.client.ui.SuggestBox;
import com.google.gwt.user.client.ui.Widget;
import com.google.inject.Singleton;
import com.webware.view.client.app.presenter.interfaces.IHeaderView;
import com.webware.view.client.app.presenter.interfaces.IHeaderView.IHeaderPresenter;

@Singleton
public class HeaderView extends ReverseCompositeView<IHeaderPresenter>
	implements IHeaderView {

    private static HeaderViewUiBinder uiBinder = GWT
	    .create(HeaderViewUiBinder.class);

    @UiField
    protected FormPanel formPanel;

    @UiField
    protected SuggestBox searchBox;

    protected interface HeaderViewUiBinder extends UiBinder<Widget, HeaderView> {
    }

    public HeaderView() {
	initWidget(uiBinder.createAndBindUi(this));
	searchBox.getElement().setPropertyString("placeholder", "Поиск");
    }
}
